package com.itrui.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

import com.itrui.feign.client.pojo.Product;
import lombok.Data;

/**
 * 商品收藏表
 * @TableName my_collocation
 */
@TableName(value ="my_collocation")
@Data
public class MyCollocation implements Serializable {
    /**
     * id
     */
    @TableId
    private Long id;

    /**
     * 收藏人账号
     */
    private Long userId;

    /**
     * 收藏商品id
     */
    private Long productId;

    /**
     * 收藏时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 逻辑删除
     */
    private Integer isDelete;

    /**
     * 商品实体
     */
    @TableField(exist = false)
    private Product product;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}